package beans;

/**
 * @author roze
 *
 */
public class Lien {

	private String url;
	private Type type;
	private Morceau morceau;	
	
	
	/**
	 * @param url
	 * @param type
	 * @param morceau
	 */
	public Lien(String url, Type type, Morceau morceau) {
		super();
		this.url = url;
		this.type = type;
		this.morceau = morceau;
	}
	
	

	public Lien() {
		super();
	}



	/**
	 * @return l'url
	 */
	public String getUrl() {
		return url;
	}
	
	/**
	 * @param url
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	
	/**
	 * @return le type
	 */
	public Type getType() {
		return type;
	}
	
	/**
	 * @param type
	 */
	public void setType(Type type) {
		this.type = type;
	}
	
	/**
	 * @return le morceau
	 */
	public Morceau getMorceau() {
		return morceau;
	}
	
	/**
	 * @param morceau
	 */
	public void setMorceau(Morceau morceau) {
		this.morceau = morceau;
	}
	
	
	@Override
	public String toString() {
		return "Lien [url=" + url + ", type=" + type + ", morceau=" + morceau
				+ "]";
	}	
		

}
